function ds = mydownsample( x,r )
% my version of the Matlab downsample function
% returns every r'th value of x

ds = [];
for i=1:size(x,1)
    if mod(i,r)==1
        ds = [ds x(i)];
    end
end

